import Vue from "vue";
import store from "./store";
import App from "./App.vue";
import router from "./router";

import VueSocketIO from "vue-socket.io-4.6";

Vue.use(
  new VueSocketIO({
    debug: false,

    connection: "http://127.0.0.1:8360",
    vuex: {
      store,
      actionPrefix: "SOCKET_",
      mutationPrefix: "SOCKET_",
    },
    options: { path: "/socket.io/" }, // Optional options
  })
);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
